package com.atguigu.chapter10

object Exercise01 {
  def main(args: Array[String]): Unit = {
    val list1 = List(1, 2, 3, "abc")
    val result1 = 5 :: 6 :: 7 :: list1 :: Nil
    // result= List(5, 6, 7, List(1, 2, 3, abc))
    println("result= " + result1)
    val result2 = 5 :: 6 :: 7 :: list1
    // result= List(5, 6, 7, 1, 2, 3, abc)
    println("result= " + result2)
    val result3 = 4 :: 5 :: 6 :: list1 ::: list1 ::: Nil
    // result= List(4, 5, 6, 1, 2, 3, abc, 1, 2, 3, abc)
    println("result= " + result3)
  }
}
